package com.kongjs.application.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

import java.time.Duration;
import java.util.List;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {
    private Resource accessTokenPublicKey;
    private Resource accessTokenPrivateKey;
    private Resource refreshTokenPublicKey;
    private Resource refreshTokenPrivateKey;
    private String issuer;
    private List<String> audience;
    private Duration accessTokenExpiry;
    private Duration refreshTokenExpiry;
    private Duration clockSkew;
}
